package service;

import java.util.List;

import util.web.Page;
import dao.NewStateDao;
import entity.NewState;
import entity.NewTime;

public class NewStateService {

	private NewStateDao newStateDao = new NewStateDao();

	public void save(NewState newState) {
		newStateDao.save(newState);
		
	}

	public Page<entity.NewState> findNewStateByProjectIdPage(int nowPageNum,
			String id) {
		
		return newStateDao.findNewStateByProjectIdPage(nowPageNum,id);
	}

	public List<entity.NewState> findNewstateByProjectidReplaywhoidtime(
			String projectid, String replaywhoid, String lastclickcommenttime) {
		
		return newStateDao.findNewstateByProjectidReplaywhoidtime(projectid,replaywhoid,lastclickcommenttime);
	}

	public Page<NewState> findNewStateByProjectIdAndUseridPage(int nowPageNum,
			String id, String replaywhoid) {
		
		return newStateDao.findNewStateByProjectIdAndUseridPage(nowPageNum,id,replaywhoid);
	}

	public NewState findnewstateByIdprojectid(String fid, String id) {
		
		return newStateDao.findnewstateByIdprojectid(fid,id);
	}

	public List<NewState> findnewstateByFidprojectid(String fid, String id) {
		// TODO Auto-generated method stub
		return newStateDao.findnewstateByFidprojectid(fid,id);
	}

	public NewState findnewstateById(String string) {
		
		return newStateDao.findnewstateById(string);
	}

	

	
	
	
}
